package com.igeekhome.api.controller;

import com.igeekhome.service.ISyspermissionService;
import com.igeekhome.units.ListForm;
import com.igeekhome.units.ResultBean;
import com.igeekhome.units.ResultBean01;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/permission")
public class SysPermissionController {
    @Resource
    private ISyspermissionService iSyspermissionService;
    @RequestMapping("/list")
    private  ResultBean01 list(){
        List<ListForm> listForms = iSyspermissionService.listForm();
        ResultBean01 ok = ResultBean01.ok(listForms);
        return ok;
    }
}
